package com.lkd.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lkd.dto.PolicyDTO;
import com.lkd.entity.Policy;
import com.lkd.entity.VM;
import com.lkd.result.TableInfo;

public interface PolicyService extends IService<Policy> {
    Policy getPolicyByInnerCode(String innerCode);

    boolean deletePolicy(String id);

    boolean cancelPolicy(String policyId, String innerCode);

    Boolean add(Policy policy);

    TableInfo<VM> vmList(Long policyId, PolicyDTO policyDTO);

    TableInfo<Policy> searchPolicy(PolicyDTO policyDTO);
}
